<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
</head>
<body>
<h2>WelCome to Customer Adding Interface </h2>

<table border="1px" >
    <tr><!--  <a href="/Struts2SpringHibernate/common/viewAddCustomerScreen">Add New customer</a> -->    
    <s:url id="addCustomer" namespace="/" action="common/viewAddCustomerScreen" />  
    <s:a href="%{addCustomer}">Add New customer</s:a>
    
    </tr>
	<tr>
		<th>Name</th>
		<th>Address</th>
		<th>Gender</th>
		<th>Item</th>
		<th>Delete</th>
		<th>Edit</th>
	</tr>
	<s:iterator value="savedCustomerList">		<tr>
			<td><s:property value="custName" /></td>
			<td><s:property value="address" /></td>
			<td><s:property value="gender" /></td>
			<td><s:property value="item" /></td>			
			<td><a href="/Struts2SpringHibernate/common/deleteCustomerAction?id=<s:property value="id" />">X</a></td>
			<td><a href="/Struts2SpringHibernate/common/editCustomersAction?id=<s:property value="id" />">E</a></td>
		</tr>
	</s:iterator>
</table>
 </body>
</html>